package iCal;
import java.util.*;

public class Event {
	private String DTSTART;
	private String DTEND;
	public int PRIORITY;
	private String description;
	private String summary;
	private String location;
	private String classification;
	private StringBuilder event;
	
	public Event(String startTime,String endTime, int importance, String descript, String name, String place, String privacy) {
		DTSTART = startTime;
		DTEND = endTime;
		PRIORITY = importance;
		description = descript;
		summary = name;
		location = place;
		classification = privacy;
		event = new StringBuilder();
	}
	public String buildEvent() {
		event.append("BEGIN:VEVENT");
		event.append(System.getProperty("line.separator"));
		event.append("DTSTART:" + DTSTART);
		event.append(System.getProperty("line.separator"));
		event.append("DTEND" + DTEND);
		event.append(System.getProperty("line.separator"));
		event.append("DESCRIPTION:" + description);
		event.append(System.getProperty("line.separator"));
		event.append("LOCATION:" + location);
		event.append(System.getProperty("line.separator"));
		event.append("SUMMARY:" + summary);
		event.append(System.getProperty("line.separator"));
		event.append("END:VEVENT");
		event.append(System.getProperty("line.separator"));
		
		return event.toString();
	}

}
